﻿using System.Diagnostics;
using Microsoft.Build.Framework;

namespace Jgrass.GitHookMsbuildTask;

public class LargeFileInterceptTask : Microsoft.Build.Utilities.Task
{
    public override bool Execute()
    {
#if DEBUG
        // Debugger.Launch();
#endif

        Log.LogMessage(MessageImportance.High, "Normal Message");
        Log.LogWarning("Warning Message");
        Log.LogError("Error Message");

        return false; // Task 执行失败，会让引用了此 Task 的项目编译失败。
    }
}
